package cn.csg.ams.collect2.poptopics.entity;

import cn.csg.ams.collect2.poptopics.datahub.OutageJudge;
import lombok.Data;

import java.util.List;

@Data
public class OutageJudgeData {

    //研判状态   true表示研判通过 还是停电状态  false表示不满足  复电状态
    private boolean stats;

    //研判规则
    private String judgeRule;

    //停电状态码 1 台区停电   2分路停电    0部分用户停电
    private String judgeCode;

    //台区停电时 给出台区编号
    private String judgeTa;

    //分路停电时 给出分路编号
    private String judgeShunt;

    //部分用户停电给出 电表信息
    private List<String> judgeMeter;

    public static OutageJudgeData OK(String judgeRule,String judgeCode){
        OutageJudgeData outageJudgeData = new OutageJudgeData();
        outageJudgeData.setJudgeRule(judgeRule);
        outageJudgeData.setJudgeCode(judgeCode);
        outageJudgeData.setStats(true);
        return outageJudgeData;
    }

    public static OutageJudgeData fail(){
        OutageJudgeData outageJudgeData = new OutageJudgeData();
        outageJudgeData.setStats(false);
        return outageJudgeData;
    }
}
